package com.FrameWork.Synchoronization;

import java.util.HashMap;
import java.util.TreeMap;

/**
 * @author steven.jiang
 * 
 */
public class SyncProcess_Audit implements ISyncProcess
{
	private boolean ishavesync= false;
	public HashMap<String, String> getDownloadLogic()
	{
		HashMap<String, String> hash = new HashMap<String, String>();

		hash.put("VISITS", "1,ID");
		hash.put("CUSTOMERS", "2,ID");
		hash.put("DICTIONARY", "3,DICTIONARYITEMID");
		hash.put("MEASURE_ITEMS", "4,ID");
		hash.put("MEASURE_ITEM_DETAIL", "5,ID");
		hash.put("PRODUCTS", "6,ID");
		//hash.put("ORDER_HEADERS", "7,ID");
		//hash.put("ORDER_LINES", "8,ID");
		//hash.put("CPR_DATA_CONFIG", "9,ID");
		//hash.put("CPR_LASTTIME_DATAS", "10,ID");
		//hash.put("PROMOTIONFORMULA", "9,ID");
		//hash.put("PROMOTIONFORMULADETAIL", "10,ID");
		hash.put("VISIT_TYPE", "11,ID");
		hash.put("MANUFACTURERS", "14,ID");
		hash.put("CATEGORIES", "15,ID");
		hash.put("BRANDS", "16,ID");
		hash.put("FORMS", "17,ID");
		hash.put("MEASURE_GROUP", "17,ID");
		hash.put("CPR_BRAND_CONFIG", "18,ID");
		//hash.put("MEASURE_DETAIL_VALUE", "19,ID");
		hash.put("PRODUCT_UOMS", "20,ID");
		hash.put("CONTACT_INFO", "21,CUSTOMER_ID");
		
		//hash.put("PHOTO", "22,ID");
		return hash;
	}

	@Override
	public void AfterSync()
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void BeforeSync()
	{
		// TODO Auto-generated method stub

	}

	@Override
	public boolean getHaveSync()
	{
		// TODO Auto-generated method stub
		return ishavesync;
	}



	@Override
	public TreeMap<Integer, String> getUploadTablesAndLogic()
	{
		// TODO Auto-generated method stub
		TreeMap<Integer, String> hash = new TreeMap<Integer, String>();
		hash.put(1,"UPLOAD_CUSTOMERS,ID");
		hash.put(2,"UPLOAD_VISITS,ID");
		hash.put(3,"UPLOAD_CONTACT_INFO,CUSTOMER_ID");
		hash.put(4,"UPLOAD_MEASURE_DETAIL_VALUE,ID");
		hash.put(5,"UPLOAD_ORDER_HEADERS,ID");
		hash.put(6,"UPLOAD_ORDER_LINES,ID");
		hash.put(7,"UPLOAD_CPR_DATAS,ID");
		hash.put(8,"UPLOAD_CPR_LASTTIME_DATAS,CUSTOMERS_ID:PRODUCTS_ID:VISITID");
		hash.put(9,"UPLOAD_CPR_BRAND_DATAS,ID");
		return hash;
	}

	@Override
	public void setHaveSync(boolean HaveSync)
	{
		// TODO Auto-generated method stub
		ishavesync=HaveSync;
	}
}
